// import { UserMeetingRecord, UserStatus } from "@/api/user";

export enum UserStatus {
    ALL = 'ALL',              //全部用户，每个用户只会出现一次，但其他的可能会有多用户-会议数据
    PENDING = 'PENDING',       // 未允许参会
    APPROVED = 'APPROVED',     // 已允许参会
    UNSIGNED = 'UNSIGNED',     // 未签到
    SIGNED = 'SIGNED'         // 已签到
}

export interface UserMeetingRecord {
    id: number
    nickname: string        
    phone: string         
    reason: string        // 申请理由
    status: UserStatus    
    meetId: number        // 会议ID
    absenceReason: string // 缺席原因
    applyTime: string     // 申请时间 TODO: 显示在前端
    updateTime: string    // 状态更新时间 TODO: 显示在前端
}

export const mockUsers: UserMeetingRecord[] = [
    {
      id: 1,
      nickname: "张三",
      phone: "13800138000",
      reason: "对会议主题非常感兴趣，希望能参与讨论",
      status: UserStatus.PENDING,
      meetId: 1,
      absenceReason: "",
      applyTime: "2024-03-20 10:00:00",
      updateTime: "2024-03-20 10:00:00"
    },
    {
      id: 2,
      nickname: "李四",
      phone: "13800138001",
      reason: "公司推荐参加，希望能学习新技术",
      status: UserStatus.APPROVED,
      meetId: 1,
      absenceReason: "",
      applyTime: "2024-03-19 14:30:00",
      updateTime: "2024-03-19 15:00:00"
    },
    {
      id: 3,
      nickname: "王五",
      phone: "13800138002",
      reason: "想了解最新的技术发展趋势",
      status: UserStatus.UNSIGNED,
      meetId: 1,
      absenceReason: "临时有事无法参加",
      applyTime: "2024-03-18 09:15:00",
      updateTime: "2024-03-20 09:00:00"
    },
    {
      id: 4,
      nickname: "赵六",
      phone: "13800138003",
      reason: "作为安全工程师，希望与同行交流经验",
      status: UserStatus.SIGNED,
      meetId: 2,
      absenceReason: "",
      applyTime: "2024-03-17 11:20:00",
      updateTime: "2024-03-20 10:30:00"
    },
    {
      id: 5,
      nickname: "钱七",
      phone: "13800138004",
      reason: "想了解最新的安全产品",
      status: UserStatus.PENDING,
      meetId: 2,
      absenceReason: "",
      applyTime: "2024-03-16 16:45:00",
      updateTime: "2024-03-16 16:45:00"
    }
  ]